#!/bin/bash

# Update Linux with latest software
sudo apt-get update

# Get the latest JDK
sudo apt-get install openjdk-8-jre-headless

# Get the latest Eclipse platform installation
sudo apt-get install eclipse-platform

# Add the Eclipse C++ Development Tooling plugin (Eclipse CDT)
sudo apt-get install eclipse-cdt

# Install the basic SVN subversion client
sudo apt-get install svn

# Install the RapidSVN Subversion client
sudo apt-get install rapidsvn

# Get the jenkins application
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins

# Install ivy
sudo apt-get install ivy

# check that the version of ant installed is 1.9.4 or newer
ant -version
# Apache Ant(TM) version 1.9.4 compiled on April 29 2014

# Install Ant contrib
sudo apt-get install ant-contrib

# Check Java version
java -version
#java version "1.7.0_65"
#OpenJDK Runtime Environment (IcedTea 2.5.1) (7u65-2.5.1-4ubuntu1)
#OpenJDK Server VM (build 24.65-b04, mixed mode)

# Check alsa version number
cat /proc/asound/version
# Advanced Linux Sound Architecture Driver Version 1.0.25.

# Checkout the Bosch Nuance wrapper project to the Nuance directory
svn -co http://svn.icloud-radio.com/svn/znuance Nuance
